<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Http\Queries\VehicleSeriesQuery;
use App\Http\Resources\VehicleSeriesResource;

class VehicleSeriesController extends Controller
{
    public function index(VehicleSeriesQuery $query){
        $rows = $query->get();
        return $this->resource(VehicleSeriesResource::collection($rows));
    }

}
